package com.cms.service.impl;

import com.cms.dao.UserMapper;
import com.cms.entity.User;
import com.cms.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login (HashMap<String,String> userMap) {
        return userMapper.login(userMap);
    }

    @Override
    public List<User> findAll () {
        return userMapper.findAll();
    }

}
